package d8_extends_demo;

public class Test {
    public static void main(String[] args) {
        //目标: 搞清楚继承的好处
        Teacher t1 = new Teacher();//注意对象里面是什么都有的,访问要看设计图公开什么
        t1.setName("波妞");
        t1.setSkill("码java代码");
        System.out.println(t1.getName());
        System.out.println(t1.getSkill());
    }
}
